*:focus{
    outline: none;
}

 /* //滚动条凹槽的颜色，还可以设置边框属性 */
 ::-webkit-scrollbar-track-piece {
    background-color:#f8f8f8;
    border-radius: 8px;
    }
    /* //滚动条的宽度 */
    ::-webkit-scrollbar {
    width:3px;
    height:6px;
    }
    /* //滚动条的设置 */
    ::-webkit-scrollbar-thumb {
    background-color:#dddddd;
    background-clip:padding-box;
    min-height:28px;
    border-radius: 8px;
    }
    ::-webkit-scrollbar-thumb:hover {
    background-color:#bbb;
    }

header{
    height: 50px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    background-color: cadetblue;
    color: #fff;
}

.chat-content{
    height: 420px;
    border: 1px solid #ccc;
    padding: 0 10px;
    overflow: auto;
}
.chat-tools{
    /* height: 40px; */
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-bottom: 0;
    /* line-height: 40px; */
    padding: 0  10px  2px 10px;
    color: #666;
}
.chat-tools button:last-child{
    color: #808080;
}
.chat-input{
    position: relative;
    height: 100px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

.chat-input .chat-input-content textarea{
    height: 100px;
    resize: none;
    font-size: 14px;
    font-weight: bold;
    color: #999;
}

.chat-input .chat-input-btn{
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.chat-content .chat-item{
    margin: 30px 0;
}
.chat-content .chat-item::after{
    content: "";
    display: block;
    clear: both;
}
.chat-content .chat-item .chat-item-detail{
    display: flex;
}

.chat-content .chat-item .chat-item-info{
    display: flex;
}

.chat-content .chat-item .chat-item-user .chat-item-user-thumb{
    width: 40px;
    height: 40px;
    background-color: salmon;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    font-size: 20px;
}

.chat-content .chat-item .chat-item-info .chat-item-info-nick{
    font-size: 12px;
    color: #666;
    padding-left: 0px;
}

.chat-content .chat-item .chat-item-info .chat-item-info-nick .time{
    color: #999;
    padding-left: 10px;
}

.chat-content .chat-item-detail .chat-item-content{
    position: relative;
    min-width: 100px;
    /* width: 90%; */
    margin-left: 10px;
    padding: 5px 8px;
    line-height: 24px;
    color: #333;
    background-color: #e9e9e9;
    border-radius: 5px;
    max-width: 95%;
    word-wrap: break-word;
    display: inline-block;
    
}

.chat-content .chat-item-detail .chat-item-content::before{
    content: "";
    position: absolute;
    top: 20px;
    transform: translateY(-50%);
    width: 0;
    left:-10px;
    height: 0;
    border:6px solid transparent;
    border-right-color: #e9e9e9;
}

.chat-content .chat-for-user .chat-item-info{
    float: right;
}

.chat-content .chat-for-user .chat-item-detail{
    float: right;
}

.chat-content .chat-for-user .chat-item-user  .chat-item-user-thumb{
    margin-left: 10px;
    color: #fff;
    background-color: turquoise;
}

.chat-content .chat-for-user .chat-item-detail .chat-item-content::before{
    right: -10px;
    left: auto;
    border-right-color: transparent;
    border-left-color: #e9e9e9;
}
.chat-input-content{
    width: 100%;
    height: 100%;
}


/* 移动段兼容自适应 */


@media screen and (max-width:920px){
    html,body{
        height: 100%;
    }
    .container{
        height: 100%;
        position: relative;
        padding:2px;
    }
    .chat-content{
      height: 50%;
      padding: 5px;
      border:0;
    }
    .chat-tools{
        padding: 1px ;
        overflow: auto;
        padding:0 0 0 0;
        margin: 0;
        height: 5%;
        display: flex;
        position: fixed;
        bottom:200px;
        right: 0;

    }
    .chat-input{
       max-height: 200px;
       height: 30%;
        display: flex;
        position: fixed;
        bottom:0;
        right: 0;
        min-width: 100px;
        width: 100%;
        max-width: 100%;

    }
    .form-control{
        height: 70%;
    }
    .chat{
        padding: 2px ;
    }
    header{
        display: flex;
        position: fixed;
        z-index: +1;
        white-space: nowrap;
        font-size:1 rem;
        margin-top: 0;
        overflow-x: auto;
       
    }
    header  #haederTitle{
        width: 100%;
        text-align: right;
        padding-left: 3em;
        overflow-x: auto;
        /* color:red; */
    }
    #user-container{
        /* margin-top: 40px; */
        display: inline-block;
        background-color:ghostwhite;
        position: absolute;
    }
    #wrapper{
        display: block;
    }
    #user-container{
        display: none;
    }
   
}
@media screen and (max-width:569px){
    header{
        display: flex;
        position: fixed;
        z-index: +1;
        white-space: nowrap;
        font-size:0.5 rem;
        margin-top: 0;
    }
 
    #tbod{
        margin-top: 60px;
    }
    .chat{
        padding-top: 60px;
    }
 
 
 }